<tr class="<%= cycle("odd", "even") %>">
  <td><%=h post.name %></td>
  <td><%= link_to post.title, post %></td>
  <td><%=h post.content %></td>
	<% if current_user.role == 'PDAdmin' %>
		<td><%= link_to 'Edit', edit_post_path(post) %></td>
		<td><%= link_to 'Delete', post, :confirm => 'Are you sure?', :method => :delete %></td>
	<% end %>
</tr>